require 'capistrano/recipes/deploy/local_dependency'

[:accurev, :bzr, :cvs, :darcs, :git, :mercurial, :perforce, :subversion, :none].each do |scm_type|
  extension :scm => scm_type do
    task :fill_scm do
      set :scm, Capistrano::Deploy::SCM::new(scm_type, self)
      class << scm; self; end.class_eval do
        define_method :type do
          scm_type
        end
      end
    end
  end
end
